/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-04-30
*/
package com.rzico.basics.entity;

import com.rzico.annotation.IgnoreSwaggerParameter;
import lombok.Data;

import java.util.Collections;
import java.util.Date;
import java.util.List;
import javax.persistence.*;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * <pre>
 *   运费模板数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_freight")
public class Freight{
    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "创建日期" )
    protected java.util.Date createDate;

    @ApiModelProperty(value = "修改日期" )
    protected java.util.Date modifyDate;

    @ApiModelProperty(value = "名称" )
    protected String name;

    @ApiModelProperty(value = "类型{1:计件,2:距离}" )
    protected Integer type;

    @ApiModelProperty(value = "续重" )
    protected java.math.BigDecimal ctd;

    @ApiModelProperty(value = "续重运费" )
    protected java.math.BigDecimal ctdPrice;

    @ApiModelProperty(value = "首重" )
    protected java.math.BigDecimal ykg;

    @ApiModelProperty(value = "首重运费" )
    protected java.math.BigDecimal ykgPrice;

    @ApiModelProperty(value = "是否收楼层费" )
    protected Boolean enabledLevel;

    @ApiModelProperty(value = "起算楼层" )
    protected Integer levelStart;

    @ApiModelProperty(value = "每层加价" )
    protected java.math.BigDecimal levelFreight;

    @ApiModelProperty(value = "包装费" )
    protected java.math.BigDecimal packagingFee;

    @ApiModelProperty(value = "所属企业" )
    protected Long enterpriseId;

    /**
     * 当前对象的结果信息
     */
    @JsonIgnore
    @IgnoreSwaggerParameter
    protected List<FreightArea> areaItemList = Collections.emptyList();

    protected List<FreightArea> itemList = Collections.emptyList();

}
